package com.huifer.wgx.repository;

import com.huifer.wgx.model.FunctionEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * <p>Title : FunctionRepository </p>
 * <p>Description : </p>
 *
 * @author huifer
 * @date 2019-03-15
 */
public interface FunctionRepository extends JpaRepository<FunctionEntity, Long>,
        JpaSpecificationExecutor<FunctionEntity> {

    /**
     * 根据名称查询职能
     *
     * @param name 职能名称
     * @return 职能列表
     */
    FunctionEntity findByFunctionName(String name);



}
